#!/bin/bash

#SBATCH -o /public1/home/scfa1117/pmpi-allreduce/result/run.log
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=48

mpicxx -c test_pmpi.cpp -o test_pmpi.o
ar rcs libtestpmpi.a test_pmpi.o
mpicxx inte.cpp -L. -ltestpmpi -g -o inte
# mkdir /public1/home/scfa1117/pmpi-allreduce/result
mpirun -np 2 ./inte # &>/public1/home/scfa1117/pmpi-allreduce/result/ring48_pure.out
